package pta.MOOC.ch01.ex02;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final int HUMANNUM=10;
        String persons[]=new String[HUMANNUM];
        Scanner in=new Scanner(System.in);
        for(int i=0;i<persons.length;i++)
            persons[i]=in.nextLine();
        int result=numofHan(persons);
        System.out.println(result);

    }
    public static int numofHan(String data[]) {
        int count = 0;
        for (String person : data) {
            String[] info = person.split(",");
            if (info[3].equals("汉族")||info[3].equals("汉族人")) {
                count++;
            }
        }
        return count;
    }
}

